package pe.com.bn.sach.dao.impl;

import java.util.List;
import com.ibatis.sqlmap.client.SqlMapClient;

import pe.com.bn.sach.cliente.controller.ClienteController;
import pe.com.bn.sach.domain.Bnchf44Transicion;
import pe.com.bn.sach.dao.Transicion44DAO;

import org.apache.log4j.Logger;

public class Transicion44Impl implements Transicion44DAO
{

	private static Logger log = Logger.getLogger(ClienteController.class.getName());
	protected SqlMapClient sqlMap = null;
	
	public void setSqlMap(SqlMapClient sqlMap) {
		this.sqlMap = sqlMap;
	}
	

	public List buscarUp(Bnchf44Transicion bnchf44Transicion) throws Exception{
		
		return sqlMap.queryForList("sqlTransicion44.listaUp",bnchf44Transicion);	
	}
	
	public Bnchf44Transicion ListaTransicionNext(Bnchf44Transicion bnchf44Transicion) throws Exception{
		List l = sqlMap.queryForList("sqlTransicion44.listaTransicion44next",bnchf44Transicion);

		bnchf44Transicion = (Bnchf44Transicion)l.get(0);
		return bnchf44Transicion;
	}
	
	public Bnchf44Transicion ListaTransicionReturn(Bnchf44Transicion bnchf44Transicion) throws Exception{
		List l = sqlMap.queryForList("sqlTransicion44.listaTransicion44Return",bnchf44Transicion);
	
		bnchf44Transicion = (Bnchf44Transicion)l.get(0);
		return bnchf44Transicion;
	}
	
	
	
	
	
}
